<template>
  <button @click="handleClick">按钮</button>
</template>

<script>
export default {
  name: 'Child',
  methods: {
    handleClick() {
      throw new Error('出错了~~~');
    }
  }
}
</script>

<style>

</style>